<include file="Public:header" />
        <div class="mainbox">
        	<br/>
      		<h1>北京化工大学教职工机动车证申请表</h1>
            <br/><br/>
            
            <h4>申请人信息</h4>
            <br/> 
        	
            <form class="form-horizontal" action="{:U('Home/Car/save')}" method="POST" enctype="multipart/form-data" id="car-form">

              <div class="form-group" style="margin-bottom:-18px;">
                <label for="inputEmail3" class="col-sm-2 control-label" ><span style="color:#F00">*</span>单位</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_unit']}">
                </div>
              </div>
   
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>姓名</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_name']}">
                </div>
              </div>
              
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>手机</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_tel']}">
                </div>
              </div>
              
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>邮箱</label>
                <div class="col-sm-9">
                  <input type="email" class="form-control" id="inputEmail3" disabled value="{$staff['staff_email']}">
                </div>
              </div>
              
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>工号</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_id']}">
                </div>
              </div>
              
             
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车证类型</label>
                <div class="col-sm-9" style="color:black;" >
                  <select class="form-control" style="color:black;" name="car_type">
            					<option value=''>请选择</option>
                      <option value='1'>通行证</option>
              				<option value='2'>停车证</option>
				          </select>
                </div>
              </div>
               <br/>
            <h4>行驶证信息</h4>
            <br/>
        	
            <form class="form-horizontal">
              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车主姓名</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" name="owner_name" >
                </div>
              </div>

              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">所有人地址</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" name="owner_add" >
                </div>
              </div>
              
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>与车主关系</label>
                <div class="col-sm-9">
                  <select class="form-control" style="color:black;" name="relation">
					           <option value="">请选择</option>
                    <option value="1">本人</option>
  					         <option value="2">夫妻</option>
				  </select>
                </div>
              </div>
              
               <div class="form-group" >
                <label for="inputEmail3" class="col-sm-2 control-label">品牌</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" name="brand">
                </div>
              </div>
               <div class="form-group" >
                <label for="inputEmail3" class="col-sm-2 control-label">颜色</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" name="color">
                </div>
              </div>
              
               <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label" name="photo[]">上传车照片</label>
                <div class="col-sm-9">
                <input type="file" id="exampleInputFile" name="photo[]">
                </div>
                
              </div>
              <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label"><span style="color:#F00">*</span>行驶证照片</label>
                <div class="col-sm-9">
                <input type="file" id="exampleInputFile" name="photo[]">
                </div>
                
              </div>
              <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label"><span style="color:#F00">*</span>驾驶证照片</label>
                <div class="col-sm-9">
                <input type="file" id="exampleInputFile" name="photo[]">
                </div>
                
              </div>
              
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车牌号码</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="inputEmail3" name="plate_number" >
                </div>
              </div>
              
             
               <div class="checkbox">
                <label style="font-size:20px;">
                  <input type="checkbox" name="is_agree" value="1"> 我已阅读机动车证申请相关规章制度并填写真实信息
                </label>
              </div>
             <br/><br/><br/>
             <button type="button" class="btn btn-info btn-lg"  style="margin-left:50px;" onclick="history.go(-1);">
             	<span class="glyphicon glyphicon-arrow-left" aria-hidden="true" ></span> 上一步
             </button>

             <button type="submit" class="btn btn-info btn-lg save-button" style="margin-left:50px;" disabled>
             	<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;提交申请&nbsp;&nbsp;&nbsp;
             </button>
             
              <button type="button" disabled class="btn btn-info btn-lg save-button" style="margin-left:40px;" onclick="javascript:drift()">
             	<span class="glyphicon glyphicon-download" aria-hidden="true"></span> 暂存至草稿箱
             </button>
             
             
            </form>
            <br/>

            <!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
			      <!--<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>-->
            <!-- 3 加载bootstrap核心 -->
            <script src="__ROOT_/js/bootstrap.min.js"></script>
           <script>
               $(document).ready(function(){
                   var check_agree = $("input[name=is_agree]");
                   if (check_agree.attr('checked')){
                       $(".save-button").attr('disabled',false);
                   }else{
                       $(".save-button").attr('disabled',true);
                   }

                   check_agree.click(function(){
                       if (check_agree.attr('checked')){
                           $(".save-button").attr('disabled',false);
                       }else{
                           $(".save-button").attr('disabled',true);
                       }
                   });
               });
               function drift() {
                   $('#car-form').attr('action',"{:U('Home/Car/save?drift=1')}");
                   $('#car-form').submit();
               }
           </script>
        </div>
 </div>
 </div>
</body>
</html>
